/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package mobile;

import java.util.LinkedList;
import java.util.List;
import turnover.Consumption;
import util.Date;

/**
 *
 * @author Alberto
 */
public class MobileConsumption extends Consumption {

    private int numCalls;
    private int numMess;
    private double consCalls;
    private double consMess;
    private Date from;
    private Date to;
    private List<Call> callList;
    private List<Message> messList;


    public MobileConsumption(long idCons, double amount, int numCalls, int numMess, double consCalls, Date from, Date to) {
        super(idCons, amount);
        this.numCalls = numCalls;
        this.numMess = numMess;
        this.consCalls = consCalls;
        this.consMess = amount - consCalls;
        this.from = from;
        this.to = to;
        callList = new LinkedList();
        messList = new LinkedList();
    }

    public double getConsCalls() {
        return consCalls;
    }

    public void setConsCalls(double consCalls) {
        this.consCalls = consCalls;
    }

    public double getConsMess() {
        return consMess;
    }

    public void setConsMess(double consMess) {
        this.consMess = consMess;
    }

    public int getNumCalls() {
        return numCalls;
    }

    public void setNumCalls(int numCalls) {
        this.numCalls = numCalls;
    }

    public int getNumMess() {
        return numMess;
    }

    public void setNumMess(int numMess) {
        this.numMess = numMess;
    }

    public Date getFrom() {
        return from;
    }

    public void setFrom(Date from) {
        this.from = from;
    }

    public Date getTo() {
        return to;
    }

    public void setTo(Date to) {
        this.to = to;
    }
    
    public List<Call> getCallList() {
        return callList;
    }

    public List<Message> getMessList() {
        return messList;
    }

    public void setCallList(List<Call> callList) {
        this.callList = callList;
    }

    public void setMessList(List<Message> messList) {
        this.messList = messList;
    }

}
